package br.ufpe.cin.dsoa.qos.service.registry.impl;

public class QoSAttribute {
	
	protected String consumerId;
	protected String serviceId;
	protected String operationName;
	protected double value;
	protected String name;
	
	public QoSAttribute(String serviceId, String operationName,
			String consumerId, double value, String name) {
		this(serviceId, consumerId, value, name);
		this.operationName = operationName;
	}
	
	public QoSAttribute(String serviceId, String consumerId, double value, String name) {
		this.serviceId = serviceId;
		this.consumerId = consumerId;
		this.value = value;
		this.name = name;
	}

	public String getName() {
		return name;
	}
	
	public String getConsumerId() {
		return consumerId;
	}
	
	public String getServiceId() {
		return serviceId;
	}

	public String getOperationName() {
		return operationName;
	}

	public double getValue() {
		return value;
	}

	@Override
	public String toString() {
		return "QoSAttribute [consumerId=" + consumerId + ", serviceId="
				+ serviceId + ", operationName=" + operationName + ", value="
				+ value + "]";
	}
	
}
